<cfcomponent output="false" alias="slr.components.cfgenerated.Instituicao_Detail.InstituicaoBean">
	<!---
		 These are properties that are exposed by this CFC object.
		 These property definitions are used when calling this CFC as a web services, 
		 passed back to a flash movie, or when generating documentation

		 NOTE: these cfproperty tags do not set any default property values.
	--->
	<cfproperty name="institucaoId" type="numeric" default="0">
	<cfproperty name="nome" type="string" default="">
	<cfproperty name="enderecoLogradouro" type="string" default="">
	<cfproperty name="enderecoBairro" type="string" default="">
	<cfproperty name="enderecoCidade" type="string" default="">
	<cfproperty name="enderecoUF" type="string" default="">
	<cfproperty name="responsavel" type="string" default="">
	<cfproperty name="responsavelCRM" type="string" default="">
	<cfproperty name="dataCadastro" type="date" default="">
	<cfproperty name="tecnicoCadastro" type="string" default="">
	<cfproperty name="dataAlteracao" type="date" default="">
	<cfproperty name="tecnicoAlteracao" type="string" default="">
	<cfproperty name="EquipamentoBeans" type="EquipamentoBean[]">

	<cfscript>
		//Initialize the CFC with the default properties values.
		variables.institucaoId = 0;
		variables.nome = "";
		variables.enderecoLogradouro = "";
		variables.enderecoBairro = "";
		variables.enderecoCidade = "";
		variables.enderecoUF = "";
		variables.responsavel = "";
		variables.responsavelCRM = "";
		variables.dataCadastro = "";
		variables.tecnicoCadastro = "";
		variables.dataAlteracao = "";
		variables.tecnicoAlteracao = "";
		variables.EquipamentoBeans = ArrayNew(1);
	</cfscript>

	<cffunction name="init" output="false" returntype="InstituicaoBean">
		<cfreturn this>
	</cffunction>
	<cffunction name="getInstitucaoId" output="false" access="public" returntype="any">
		<cfreturn variables.InstitucaoId>
	</cffunction>

	<cffunction name="setInstitucaoId" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfif (IsNumeric(arguments.val)) OR (arguments.val EQ "")>
			<cfset variables.InstitucaoId = arguments.val>
		<cfelse>
			<cfthrow message="'#arguments.val#' is not a valid numeric"/>
		</cfif>
	</cffunction>

	<cffunction name="getNome" output="false" access="public" returntype="any">
		<cfreturn variables.Nome>
	</cffunction>

	<cffunction name="setNome" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.Nome = arguments.val>
	</cffunction>

	<cffunction name="getEnderecoLogradouro" output="false" access="public" returntype="any">
		<cfreturn variables.EnderecoLogradouro>
	</cffunction>

	<cffunction name="setEnderecoLogradouro" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.EnderecoLogradouro = arguments.val>
	</cffunction>

	<cffunction name="getEnderecoBairro" output="false" access="public" returntype="any">
		<cfreturn variables.EnderecoBairro>
	</cffunction>

	<cffunction name="setEnderecoBairro" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.EnderecoBairro = arguments.val>
	</cffunction>

	<cffunction name="getEnderecoCidade" output="false" access="public" returntype="any">
		<cfreturn variables.EnderecoCidade>
	</cffunction>

	<cffunction name="setEnderecoCidade" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.EnderecoCidade = arguments.val>
	</cffunction>

	<cffunction name="getEnderecoUF" output="false" access="public" returntype="any">
		<cfreturn variables.EnderecoUF>
	</cffunction>

	<cffunction name="setEnderecoUF" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.EnderecoUF = arguments.val>
	</cffunction>

	<cffunction name="getResponsavel" output="false" access="public" returntype="any">
		<cfreturn variables.Responsavel>
	</cffunction>

	<cffunction name="setResponsavel" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.Responsavel = arguments.val>
	</cffunction>

	<cffunction name="getResponsavelCRM" output="false" access="public" returntype="any">
		<cfreturn variables.ResponsavelCRM>
	</cffunction>

	<cffunction name="setResponsavelCRM" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.ResponsavelCRM = arguments.val>
	</cffunction>

	<cffunction name="getDataCadastro" output="false" access="public" returntype="any">
		<cfreturn variables.DataCadastro>
	</cffunction>

	<cffunction name="setDataCadastro" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfif (IsDate(arguments.val)) OR (arguments.val EQ "")>
			<cfset variables.DataCadastro = arguments.val>
		<cfelse>
			<cfthrow message="'#arguments.val#' is not a valid date"/>
		</cfif>
	</cffunction>

	<cffunction name="getTecnicoCadastro" output="false" access="public" returntype="any">
		<cfreturn variables.TecnicoCadastro>
	</cffunction>

	<cffunction name="setTecnicoCadastro" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.TecnicoCadastro = arguments.val>
	</cffunction>

	<cffunction name="getDataAlteracao" output="false" access="public" returntype="any">
		<cfreturn variables.DataAlteracao>
	</cffunction>

	<cffunction name="setDataAlteracao" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfif (IsDate(arguments.val)) OR (arguments.val EQ "")>
			<cfset variables.DataAlteracao = arguments.val>
		<cfelse>
			<cfthrow message="'#arguments.val#' is not a valid date"/>
		</cfif>
	</cffunction>

	<cffunction name="getTecnicoAlteracao" output="false" access="public" returntype="any">
		<cfreturn variables.TecnicoAlteracao>
	</cffunction>

	<cffunction name="setTecnicoAlteracao" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.TecnicoAlteracao = arguments.val>
	</cffunction>

	<cffunction name="getEquipamentoBeans" output="false" access="public" returntype="EquipamentoBean[]">
		<cfreturn variables.EquipamentoBeans>
	</cffunction>

	<cffunction name="setEquipamentoBeans" output="false" access="public" returntype="void">
		<cfargument name="val" required="true">
		<cfset variables.EquipamentoBeans = arguments.val>
	</cffunction>



</cfcomponent>